Repository navigation
feat: pin the WebPC version the site deploys - #27
Merged
Merged
Conversation
The deploy used to download whatever latest-dist held. It now downloads the published WebPC release named in webpc.version (v0.1.0), checks its SHA-256 and adds it at /pc/. Upgrading WebPC means publishing its draft release, then bumping webpc.version in a pull request, so each deploy is reproducible and a cached download can never be stale.
codemug
marked this pull request as ready for review
November 23, 2026 07:09
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The site's deploy downloads a pinned, published WebPC version instead of whatever
latest-distholds.Waits on:
v0.1.0being published.If this merges first, the deploy's "Add WebPC" step gets a 404 for
releases/download/v0.1.0, and the site keeps its previous deployment. Merging this PR starts a deploy.What changes
webpc.version(new) holdsv0.1.0.scripts/fetch-webpc.shdownloadsreleases/download/<version>from codemug/webpc. It still checks the SHA-256, still honoursWEBPC_RELEASE_URL, and prints the version it added.webpc.versionin a pull request.How it was checked
bash -n scripts/fetch-webpc.sh: syntax ok.WEBPC_RELEASE_URL=file:///...) printed "fetch-webpc: added WebPC v0.1.0 ..." and extractedpc/andthird-party/after the checksum check.v0.1.0.